﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter01.Section1
{
    public class ExampleA
    {
        public ExampleA()
        {
        }
        private string result;
        public string Result
        {
            get { return result; }
        }
        public void Compute()
        {
            L.Vector v = new L.Vector(3);
            v[0] = 1.0;
            v[1] = 1.0;
            v[2] = 0.0;

            L.Vector w = new L.Vector(3);
            w[0] = 0.0;
            w[1] = 1.0;
            w[2] = 1.0;

            L.Vector c = (2.0 * v) + (6.0 * w);
            result += c[0].ToString() + "\r\n";
            result += c[1].ToString() + "\r\n";
            result += c[2].ToString() + "\r\n";
        }
    }
}

/*
2
8
6
*/